<template>
  <the-table :columns="columns" uri="members">
    <span slot="action" slot-scope="{ row }">
      <a class="ant-dropdown-link"><a-icon type="edit" /> 编辑 </a>
    </span>
  </the-table>
</template>
<script>
import theTable from '@/components/theTable.vue'

const columns = [
  {
    title: 'ID',
    dataIndex: 'id',
    width: 55,
  },
  {
    title: '用户名',
    dataIndex: 'user.username',
    width: 100,
  },
  {
    title: '上级代理',
    dataIndex: 'agency.user.username',
    width: 100,
  },
  {
    title: '上级代理号',
    dataIndex: 'agency.code',
    searchAble: true,
    width: 100,
  },
  {
    title: '违规次数',
    dataIndex: 'violations_count',
  },
  {
    title: '联系方式',
    dataIndex: 'phone',
  },
  {
    title: '可动币值',
    dataIndex: 'coins',
  },
  {
    title: '佣金比',
    dataIndex: 'fee_ratio',
  },
  {
    title: '单笔奖励',
    dataIndex: 'tip',
  },
  {
    title: '姓名',
    dataIndex: 'realname',
    width: 80,
  },
  {
    title: '银行',
    dataIndex: 'bank',
    width: 120,
  },
  {
    title: '银行卡',
    dataIndex: 'bankcard',
  },
  {
    title: '注册时间',
    dataIndex: 'created_at',
    dataType: 'range',
    searchAble: true,
  },
  {
    title: '最近登录时间',
    dataIndex: 'user.login_at',
  },
  {
    title: '最近登录IP',
    dataIndex: 'user.login_ip',
  },
  {
    title: '操作',
    key: 'action',
    scopedSlots: { customRender: 'action' },
    width: 80,
  },
]

    export default {
        components: { theTable },

        data() {
            return {
                columns,
            }
        },
        mounted() {},
        methods: {},
    }
</script>


